package com.ming.dancing.springboot.service;

import com.ming.dancing.springboot.Dao.UserDao;
import com.ming.dancing.springboot.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserDao userDao;
    @Override
    public User login(String username, String userpassword) {
        return userDao.login(username,userpassword);
    }

    @Override
    //用户注册
    public void save(User user) {
        userDao.save(user);
    }
}
